package com.crawler.demo.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class TaskJob {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(TaskJob.class);
	
	/**
	 * 定时任务
	 */
	@Scheduled(cron="0 1 0 * * ? ")
	public void scanRelay(){
		LOGGER.info("======开始=====");
		//TODO
		LOGGER.info("======结束=====");
	}
 	
}
